package while_0818;

public class AskFactorialSum {
    public static void main(String[] args) {

        int num=1;
        int sumSum=0;
        while(num<=5){
            int i=1;
            int sum=1;
            while(i<=num){
                sum*=i;
                i++;
            }
            sumSum+=sum;
            num++;
        }
        System.out.println(sumSum);
    }
}
